package priv.dajie.tzzq.model;

import priv.dajie.tzzq.spider.model.Platform;

import java.math.BigDecimal;
import java.util.Date;

public class TradeStateItem {
    private String id;
    private String steamName;
    private GoodsState tradeState;
    private BigDecimal buyPrice;
    private Platform platform;
    private String buyId;
    private String sellId;
    private BigDecimal firstPrice;
    private BigDecimal price;
    private Date buyTime;
    private Date time;

    public TradeStateItem(){

    }

    public TradeStateItem(String id, String steamName, GoodsState tradeState, BigDecimal buyPrice, Platform platform, String buyId, String sellId, BigDecimal firstPrice, BigDecimal price, Date buyTime, Date time) {
        this.id = id;
        this.steamName = steamName;
        this.tradeState = tradeState;
        this.buyPrice = buyPrice;
        this.platform = platform;
        this.buyId = buyId;
        this.sellId = sellId;
        this.firstPrice = firstPrice;
        this.price = price;
        this.buyTime = buyTime;
        this.time = time;
    }

    public String getId() {
        return id;
    }

    public String getSteamName() {
        return steamName;
    }

    public GoodsState getTradeState() {
        return tradeState;
    }

    public BigDecimal getBuyPrice() {
        return buyPrice;
    }

    public Platform getPlatform() {
        return platform;
    }

    public String getBuyId() {
        return buyId;
    }

    public String getSellId() {
        return sellId;
    }

    public BigDecimal getFirstPrice() {
        return firstPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public Date getTime() {
        return time;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setSteamName(String steamName) {
        this.steamName = steamName;
    }

    public void setTradeState(GoodsState tradeState) {
        this.tradeState = tradeState;
    }

    public void setBuyPrice(BigDecimal buyPrice) {
        this.buyPrice = buyPrice;
    }

    public void setPlatform(Platform platform) {
        this.platform = platform;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public void setSellId(String sellId) {
        this.sellId = sellId;
    }

    public void setFirstPrice(BigDecimal firstPrice) {
        this.firstPrice = firstPrice;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "TradeStateItem{" +
                "id='" + id + '\'' +
                ", steamName='" + steamName + '\'' +
                ", tradeState=" + tradeState +
                ", buyPrice=" + buyPrice +
                ", platform=" + platform +
                ", buyID='" + buyId + '\'' +
                ", sellID='" + sellId + '\'' +
                ", firstPrice=" + firstPrice +
                ", price=" + price +
                ", buyTime=" + buyTime +
                ", time=" + time +
                '}';
    }
}

